//
//  Worker.hpp
//  Staff management
//
//  Created by ryu on 2021/8/21.
//

#ifndef Worker_hpp
#define Worker_hpp
#pragma once
#include <stdio.h>
#include<string>
using namespace std;

#endif /* Worker_hpp */
class Worker{
public:
//    virtual void info() = 0;
//    virtual string getDep() = 0;
    int id;
    int dp_id;
    string name;
    
    //显示个人信息
    virtual void showInfo() = 0;

    //获取职工岗位名称
    virtual string getDeptName() = 0;
    
    
};
